<?php
class Session extends CActiveRecord{
	public static function model($className=__CLASS__){
		return parent::model($className);
	}
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return '{{session}}';
	}
	public function saveSession($uid){
		$result = self::model()->findAllByPk($uid);
		$this->save();
	}
}